package com.wisezone.permission.bean.form;

import java.util.ArrayList;
import java.util.List;

import com.wisezone.common.bean.form.BaseForm;
import com.wisezone.permission.bean.entity.WzMenuEntity;
import com.wisezone.permission.bean.entity.WzRescEntity;

/**
 * 
 *菜单; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-08-27 10:12:19 update date 2010-08-27
 *         10:12:19
 * 
 */
public class WzMenuForm extends BaseForm {

	/**
	 * 
	 *ID
	 * 
	 */
	private Long id;

	/**
	 * 
	 *父类ID
	 * 
	 */
	private WzMenuEntity parent;

	/**
	 * 
	 *名称
	 * 
	 */
	private String name;

	/**
	 * 
	 *删除状态
	 * 
	 */
	private Integer state;

	/**
	 * 
	 *资源连接ID
	 * 
	 */
	private WzRescEntity resc;

	/**
	 * 排序
	 */
	private Integer orderIndex;

	/**
	 * 描述
	 */
	private String description;

	/**
	 * 子菜单
	 */
	private List<WzMenuForm> childList = new ArrayList<WzMenuForm>();

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getState() {
		return state;
	}

	public List<WzMenuForm> getChildList() {
		return childList;
	}

	public void setChildList(List<WzMenuForm> childList) {
		this.childList = childList;
	}

	public void addChild(WzMenuForm child) {
		this.childList.add(child);
	}

	public WzMenuEntity getParent() {
		return parent;
	}

	public void setParent(WzMenuEntity parent) {
		this.parent = parent;
	}

	public WzRescEntity getResc() {
		return resc;
	}

	public void setResc(WzRescEntity resc) {
		this.resc = resc;
	}

	public Integer getOrderIndex() {
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex) {
		this.orderIndex = orderIndex;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}